<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="public/css/bootstrap.min.css" rel="stylesheet">
    <link href="public/plugins/bootstrap-table/bootstrap-table.css" rel="stylesheet">

</head>
<body>

    <form action="upload" method="post" enctype="multipart/form-data">
        <input type="file" name="photo">
        <input type="submit" value="提交">
    </form>

   <table id="userTable"></table>

 <script src="public/libs/jquery.min.js" type="text/javascript" ></script>
 <script src="public/plugins/bootstrap-table/bootstrap-table.js" type="text/javascript" ></script>


   <script type="text/javascript">
       console.log(111);
       $(function(){
           //  console.log(111);
           // $.ajax({
           //     url:"/find",
           //     success:function(data){
           //         alert(data);
           //     }
           // });


           $("#userTable").bootstrapTable({
               url:"/find",
               pagination:true,
               columns:[[
                   {field:"userId",title:"用户id"},
                   {field:"username",title:"用户名"},
                   {field:"password",title:"用户密码"}
               ]]

           });
       });

   </script>
</body>
</html>